package org.news.web.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 收藏功能对象 favorites
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@TableName("favorites")
public class Favorites{

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID
     */
    @TableId(value = "favorite_id",type = IdType.AUTO)
    private Long favoriteId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 新闻ID
     */
    private Long newsId;

    /**
     * 记录收藏时间
     */
    private Date creationTime;

    /**
     * 记录收藏更新时间
     */
    private Date updateTime;


}
